<!DOCTYPE html><html lang="zh-Hans"><head><meta http-equiv="content-type" content="text/html; charset=utf-8"><meta name="x5-fullscreen" content="true"><meta name="full-screen" content="yes"><meta name="theme-color" content="#317EFB"><meta content="width=device-width,initial-scale=1,maximum-scale=5,user-scalable=0" name="viewport"><meta name="description" content="WSL win10的linux编程接口  配置部署    linux目录结构  linux命令入门  ls命令 直接使用ls命令 以平铺的形式列出当前的工作目录的内容  默认加载home目录作为当前工作目录  home目录：每个linux系统的个人账户目录 &#x2F;home&#x2F;用户名 ls命令的参数绝对路径就是他的参数 ls命令的选项  ls命令的 -a 选项 显示全部文件包括隐藏文件"><meta property="og:type" content="article"><meta property="og:title" content="linux"><meta property="og:url" content="https://buqingdege.gitee.io/xujianhu/%E5%90%8E%E7%AB%AF/linux/index.html"><meta property="og:site_name" content="Hexo"><meta property="og:description" content="WSL win10的linux编程接口  配置部署    linux目录结构  linux命令入门  ls命令 直接使用ls命令 以平铺的形式列出当前的工作目录的内容  默认加载home目录作为当前工作目录  home目录：每个linux系统的个人账户目录 &#x2F;home&#x2F;用户名 ls命令的参数绝对路径就是他的参数 ls命令的选项  ls命令的 -a 选项 显示全部文件包括隐藏文件"><meta property="og:locale"><meta property="og:image" content="https://buqingdege.gitee.io/xujianhu/img/404.jpg"><meta property="og:image" content="https://buqingdege.gitee.io/xujianhu/img/404.jpg"><meta property="og:image" content="https://buqingdege.gitee.io/xujianhu/img/404.jpg"><meta property="og:image" content="https://buqingdege.gitee.io/xujianhu/img/404.jpg"><meta property="og:image" content="https://buqingdege.gitee.io/xujianhu/img/404.jpg"><meta property="og:image" content="https://buqingdege.gitee.io/xujianhu/img/404.jpg"><meta property="og:image" content="https://buqingdege.gitee.io/xujianhu/img/404.jpg"><meta property="og:image" content="https://buqingdege.gitee.io/xujianhu/img/404.jpg"><meta property="og:image" content="https://buqingdege.gitee.io/xujianhu/img/404.jpg"><meta property="og:image" content="https://buqingdege.gitee.io/xujianhu/img/404.jpg"><meta property="og:image" content="https://buqingdege.gitee.io/xujianhu/img/404.jpg"><meta property="og:image" content="https://buqingdege.gitee.io/xujianhu/img/404.jpg"><meta property="og:image" content="https://buqingdege.gitee.io/xujianhu/img/404.jpg"><meta property="og:image" content="https://buqingdege.gitee.io/xujianhu/img/404.jpg"><meta property="og:image" content="https://buqingdege.gitee.io/xujianhu/img/404.jpg"><meta property="og:image" content="https://buqingdege.gitee.io/xujianhu/img/404.jpg"><meta property="og:image" content="https://buqingdege.gitee.io/xujianhu/img/404.jpg"><meta property="og:image" content="https://buqingdege.gitee.io/xujianhu/img/404.jpg"><meta property="og:image" content="https://buqingdege.gitee.io/xujianhu/img/404.jpg"><meta property="og:image" content="https://buqingdege.gitee.io/xujianhu/img/404.jpg"><meta property="og:image" content="https://buqingdege.gitee.io/xujianhu/img/404.jpg"><meta property="og:image" content="https://buqingdege.gitee.io/xujianhu/img/404.jpg"><meta property="og:image" content="https://buqingdege.gitee.io/xujianhu/img/404.jpg"><meta property="og:image" content="https://buqingdege.gitee.io/xujianhu/img/404.jpg"><meta property="og:image" content="https://buqingdege.gitee.io/xujianhu/img/404.jpg"><meta property="og:image" content="https://buqingdege.gitee.io/xujianhu/img/404.jpg"><meta property="og:image" content="https://buqingdege.gitee.io/xujianhu/img/404.jpg"><meta property="og:image" content="https://buqingdege.gitee.io/xujianhu/img/404.jpg"><meta property="og:image" content="https://buqingdege.gitee.io/xujianhu/img/404.jpg"><meta property="og:image" content="https://buqingdege.gitee.io/xujianhu/img/404.jpg"><meta property="og:image" content="https://buqingdege.gitee.io/xujianhu/img/404.jpg"><meta property="og:image" content="https://buqingdege.gitee.io/xujianhu/img/404.jpg"><meta property="og:image" content="https://buqingdege.gitee.io/xujianhu/img/404.jpg"><meta property="og:image" content="https://buqingdege.gitee.io/xujianhu/img/404.jpg"><meta property="og:image" content="https://buqingdege.gitee.io/xujianhu/img/404.jpg"><meta property="og:image" content="https://buqingdege.gitee.io/xujianhu/img/404.jpg"><meta property="og:image" content="https://buqingdege.gitee.io/xujianhu/img/404.jpg"><meta property="og:image" content="https://buqingdege.gitee.io/xujianhu/img/404.jpg"><meta property="og:image" content="https://buqingdege.gitee.io/xujianhu/img/404.jpg"><meta property="og:image" content="https://buqingdege.gitee.io/xujianhu/img/404.jpg"><meta property="og:image" content="https://buqingdege.gitee.io/xujianhu/img/404.jpg"><meta property="og:image" content="https://buqingdege.gitee.io/xujianhu/img/404.jpg"><meta property="og:image" content="https://buqingdege.gitee.io/xujianhu/img/404.jpg"><meta property="og:image" content="https://buqingdege.gitee.io/xujianhu/img/404.jpg"><meta property="og:image" content="https://buqingdege.gitee.io/xujianhu/img/404.jpg"><meta property="og:image" content="https://buqingdege.gitee.io/xujianhu/img/404.jpg"><meta property="og:image" content="https://buqingdege.gitee.io/xujianhu/img/404.jpg"><meta property="og:image" content="https://buqingdege.gitee.io/xujianhu/img/404.jpg"><meta property="og:image" content="https://buqingdege.gitee.io/xujianhu/img/404.jpg"><meta property="og:image" content="https://buqingdege.gitee.io/xujianhu/img/404.jpg"><meta property="og:image" content="https://buqingdege.gitee.io/xujianhu/img/404.jpg"><meta property="og:image" content="https://buqingdege.gitee.io/xujianhu/img/404.jpg"><meta property="og:image" content="https://buqingdege.gitee.io/xujianhu/img/404.jpg"><meta property="og:image" content="https://buqingdege.gitee.io/xujianhu/img/404.jpg"><meta property="og:image" content="https://buqingdege.gitee.io/xujianhu/img/404.jpg"><meta property="og:image" content="https://buqingdege.gitee.io/xujianhu/img/404.jpg"><meta property="og:image" content="https://buqingdege.gitee.io/xujianhu/img/404.jpg"><meta property="og:image" content="https://buqingdege.gitee.io/xujianhu/img/404.jpg"><meta property="og:image" content="https://buqingdege.gitee.io/xujianhu/img/404.jpg"><meta property="og:image" content="https://buqingdege.gitee.io/xujianhu/img/404.jpg"><meta property="og:image" content="https://buqingdege.gitee.io/xujianhu/img/404.jpg"><meta property="og:image" content="https://buqingdege.gitee.io/xujianhu/img/404.jpg"><meta property="og:image" content="https://buqingdege.gitee.io/xujianhu/img/404.jpg"><meta property="og:image" content="https://buqingdege.gitee.io/xujianhu/img/404.jpg"><meta property="og:image" content="https://buqingdege.gitee.io/xujianhu/img/404.jpg"><meta property="og:image" content="https://buqingdege.gitee.io/xujianhu/img/404.jpg"><meta property="og:image" content="https://buqingdege.gitee.io/xujianhu/img/404.jpg"><meta property="og:image" content="https://buqingdege.gitee.io/xujianhu/img/404.jpg"><meta property="og:image" content="https://buqingdege.gitee.io/xujianhu/img/404.jpg"><meta property="og:image" content="https://buqingdege.gitee.io/xujianhu/img/404.jpg"><meta property="og:image" content="https://buqingdege.gitee.io/xujianhu/img/404.jpg"><meta property="og:image" content="https://buqingdege.gitee.io/xujianhu/img/404.jpg"><meta property="og:image" content="https://buqingdege.gitee.io/xujianhu/img/404.jpg"><meta property="og:image" content="https://buqingdege.gitee.io/xujianhu/img/404.jpg"><meta property="og:image" content="https://buqingdege.gitee.io/xujianhu/img/404.jpg"><meta property="og:image" content="https://buqingdege.gitee.io/xujianhu/img/404.jpg"><meta property="og:image" content="https://buqingdege.gitee.io/xujianhu/img/404.jpg"><meta property="og:image" content="https://buqingdege.gitee.io/xujianhu/img/404.jpg"><meta property="og:image" content="https://buqingdege.gitee.io/xujianhu/img/404.jpg"><meta property="og:image" content="https://buqingdege.gitee.io/xujianhu/img/404.jpg"><meta property="og:image" content="https://buqingdege.gitee.io/xujianhu/img/404.jpg"><meta property="og:image" content="https://buqingdege.gitee.io/xujianhu/img/404.jpg"><meta property="og:image" content="https://buqingdege.gitee.io/xujianhu/img/404.jpg"><meta property="og:image" content="https://buqingdege.gitee.io/xujianhu/img/404.jpg"><meta property="og:image" content="https://buqingdege.gitee.io/xujianhu/img/404.jpg"><meta property="og:image" content="https://buqingdege.gitee.io/xujianhu/img/404.jpg"><meta property="og:image" content="https://buqingdege.gitee.io/xujianhu/img/404.jpg"><meta property="og:image" content="https://buqingdege.gitee.io/xujianhu/img/404.jpg"><meta property="og:image" content="https://buqingdege.gitee.io/xujianhu/img/404.jpg"><meta property="og:image" content="https://buqingdege.gitee.io/xujianhu/img/404.jpg"><meta property="og:image" content="https://buqingdege.gitee.io/xujianhu/img/404.jpg"><meta property="og:image" content="https://buqingdege.gitee.io/xujianhu/img/404.jpg"><meta property="og:image" content="https://buqingdege.gitee.io/xujianhu/img/404.jpg"><meta property="og:image" content="https://buqingdege.gitee.io/xujianhu/img/404.jpg"><meta property="og:image" content="https://buqingdege.gitee.io/xujianhu/img/404.jpg"><meta property="og:image" content="https://buqingdege.gitee.io/xujianhu/img/404.jpg"><meta property="og:image" content="https://buqingdege.gitee.io/xujianhu/img/404.jpg"><meta property="og:image" content="https://buqingdege.gitee.io/xujianhu/img/404.jpg"><meta property="og:image" content="https://buqingdege.gitee.io/xujianhu/img/404.jpg"><meta property="og:image" content="https://buqingdege.gitee.io/xujianhu/img/404.jpg"><meta property="og:image" content="https://buqingdege.gitee.io/xujianhu/img/404.jpg"><meta property="og:image" content="https://buqingdege.gitee.io/xujianhu/img/404.jpg"><meta property="og:image" content="https://buqingdege.gitee.io/xujianhu/img/404.jpg"><meta property="og:image" content="https://buqingdege.gitee.io/xujianhu/img/404.jpg"><meta property="og:image" content="https://buqingdege.gitee.io/xujianhu/img/404.jpg"><meta property="og:image" content="https://buqingdege.gitee.io/xujianhu/img/404.jpg"><meta property="og:image" content="https://buqingdege.gitee.io/xujianhu/img/404.jpg"><meta property="og:image" content="https://buqingdege.gitee.io/xujianhu/img/404.jpg"><meta property="og:image" content="https://buqingdege.gitee.io/xujianhu/img/404.jpg"><meta property="og:image" content="https://buqingdege.gitee.io/xujianhu/img/404.jpg"><meta property="og:image" content="https://buqingdege.gitee.io/xujianhu/img/404.jpg"><meta property="og:image" content="https://buqingdege.gitee.io/xujianhu/img/404.jpg"><meta property="og:image" content="https://buqingdege.gitee.io/xujianhu/img/404.jpg"><meta property="og:image" content="https://buqingdege.gitee.io/xujianhu/img/404.jpg"><meta property="og:image" content="https://buqingdege.gitee.io/xujianhu/img/404.jpg"><meta property="og:image" content="https://buqingdege.gitee.io/xujianhu/img/404.jpg"><meta property="og:image" content="https://buqingdege.gitee.io/xujianhu/img/404.jpg"><meta property="og:image" content="https://buqingdege.gitee.io/xujianhu/img/404.jpg"><meta property="og:image" content="https://buqingdege.gitee.io/xujianhu/img/404.jpg"><meta property="og:image" content="https://buqingdege.gitee.io/xujianhu/img/404.jpg"><meta property="og:image" content="https://buqingdege.gitee.io/xujianhu/img/404.jpg"><meta property="og:image" content="https://buqingdege.gitee.io/xujianhu/img/404.jpg"><meta property="og:image" content="https://buqingdege.gitee.io/xujianhu/img/404.jpg"><meta property="og:image" content="https://buqingdege.gitee.io/xujianhu/img/404.jpg"><meta property="article:published_time" content="2023-10-08T16:04:23.904Z"><meta property="article:modified_time" content="2023-10-08T16:05:00.506Z"><meta property="article:author" content="buqingdege"><meta property="article:tag" content="linux"><meta name="twitter:card" content="summary"><meta name="twitter:image" content="https://buqingdege.gitee.io/xujianhu/img/404.jpg"><title>linux</title><link href="/xujianhu/img/favicon.svg?v=2.1.2" rel="icon" type="image/png" sizes="16x16"><link href="/xujianhu/img/favicon.svg?v=2.1.2" rel="icon" type="image/png" sizes="32x32"><link rel="stylesheet" href="/xujianhu/css/plugins/bootstrap.row.css"><link rel="stylesheet" href="https://unpkg.com/@fancyapps/ui@4.0/dist/fancybox.css"><link rel="stylesheet" href="/xujianhu/css/plugins/font-awesome.min.css"><script>window.ASYNC_CONFIG={hostname:"buqingdege.gitee.io",author:"buqingdege",root:"/xujianhu/",typed_text:["buqingdege"],theme_version:"2.1.2",theme:{switch:!0,default:"style-light"},favicon:{logo:"/img/favicon.svg",icon16:"/img/favicon.svg",icon32:"/img/favicon.svg",appleTouchIcon:null,webmanifest:null,visibilitychange:!1,hidden:"/failure.ico",showText:"(/≧▽≦/)咦！又好了！",hideText:"(●—●)喔哟，崩溃啦！"},i18n:{placeholder:"搜索文章...",empty:"找不到您查询的内容: ${query}",hits:"找到 ${hits} 条结果",hits_time:"找到 ${hits} 条结果（用时 ${time} 毫秒）",author:"本文作者：",copyright_link:"本文链接：",copyright_license_title:"版权声明：",copyright_license_content:"本博客所有文章除特别声明外，均默认采用 undefined 许可协议。",copy_success:"复制成功",copy_failure:"复制失败",open_read_mode:"进入阅读模式",exit_read_mode:"退出阅读模式",notice_outdate_message:"距离上次更新已经 undefined 天了, 文章内容可能已经过时。",just:"刚刚",min:"分钟前",hour:"小时前",day:"天前",month:"个月前"},swup:!1,plugin:{flickr_justified_gallery:"https://unpkg.com/flickr-justified-gallery@latest/dist/fjGallery.min.js"},icons:{sun:"far fa-sun",moon:"far fa-moon",play:"fas fa-play",email:"far fa-envelope",next:"fas fa-arrow-right",calendar:"far fa-calendar-alt",clock:"far fa-clock",user:"far fa-user",back_top:"fas fa-arrow-up",close:"fas fa-times",search:"fas fa-search",reward:"fas fa-hand-holding-usd",user_tag:"fas fa-user-alt",toc_tag:"fas fa-th-list",read:"fas fa-book-reader",arrows:"fas fa-arrows-alt-h",double_arrows:"fas fa-angle-double-down",copy:"fas fa-copy"},icontype:"font",highlight:{plugin:"highlighjs",theme:!0,copy:!0,lang:!1,title:"mac",height_limit:200},toc:{post_title:!1}}</script><script id="async-page-config">window.PAGE_CONFIG={isPost:!0,isHome:!1,postUpdate:"2023-10-09 00:05:00"}</script><link data-swup-theme rel="stylesheet" href="/xujianhu/css/index.css?v=2.1.2" id="trm-switch-style"><script>let defaultMode="auto"!==ASYNC_CONFIG.theme.default?ASYNC_CONFIG.theme.default:window.matchMedia("(prefers-color-scheme: light)").matches?"style-light":"style-dark",catchMode=localStorage.getItem("theme-mode")||defaultMode,type="style-dark"===catchMode?"add":"remove";document.documentElement.classList[type]("dark")</script><meta name="generator" content="Hexo 6.3.0"></head><body><div class="trm-app-frame"><div class="trm-preloader"><div class="trm-holder"><div class="preloader"><div></div><div></div><div></div><div></div><div></div><div></div><div></div><div></div><div></div><div></div></div></div></div><div class="trm-mode-swich-animation-frame"><div class="trm-mode-swich-animation"><i class="i-sun"><i class="iconfont far fa-sun"></i></i><div class="trm-horizon"></div><i class="i-moon"><i class="iconfont far fa-moon"></i></i></div></div><div id="trm-dynamic-content" class="trm-swup-animation"><div id="trm-scroll-container" class="trm-scroll-container" style="opacity:0"><header class="trm-top-bar"><div class="container"><div class="trm-left-side"><a href="/xujianhu/" class="trm-logo-frame trm-anima-link"><img alt="logo" src="/xujianhu/img/favicon.svg"><div class="trm-logo-text">不情<span>的歌</span></div></a></div><div class="trm-right-side"><div class="trm-menu"><nav><ul><li class="menu-item-has-children"><a href="/xujianhu/" target="">主页</a></li><li class="menu-item-has-children"><a href="/xujianhu/categories/" target="">分类</a></li><li class="menu-item-has-children"><a href="/xujianhu/archives/" target="">归档</a></li><li class="menu-item-has-children"><a data-no-swup href="/xujianhu/tag/" target="">标签</a></li></ul></nav></div><div class="trm-mode-switcher-place"><div class="trm-mode-switcher"><i class="iconfont far fa-sun"></i> <input class="tgl tgl-light" id="trm-swich" type="checkbox"> <label class="trm-swich" for="trm-swich"></label> <i class="iconfont far fa-moon"></i></div></div><form class="site-search-form"><input type="text" id="local-search-input" class="st-search-input" style="margin-bottom:0"></form><div id="local-search-result" class="local-search-result-cls"></div></div><div class="trm-menu-btn"><span></span></div></div></header><link rel="stylesheet" href="css/search.css"><script src="js/jquery.js"></script><script src="js/search.js"></script><script src="js/search_custom.js"></script><div class="trm-content-start"><div class="trm-banner"><img style="object-position:top;object-fit:cover" alt="banner" class="trm-banner-cover" src="/xujianhu/img/banner.png"><div class="trm-banner-content trm-overlay"><div class="container"><div class="row"><div class="col-lg-4"></div><div class="col-lg-8"><div class="trm-banner-text"><div class="trm-label trm-mb-20">NEWS LETTER</div><h1 class="trm-mb-30 trm-hsmb-font">linux</h1><ul class="trm-breadcrumbs trm-label"><li><a href="/xujianhu/" class="trm-anima-link">Home</a></li><li><span>后端</span></li></ul></div><span id="scroll-triger" class="trm-scroll-hint-frame"><div class="trm-scroll-hint"></div><span class="trm-label">Scroll down</span></span></div></div></div></div></div><div class="container"><div class="row"><div class="trm-page-sidebar col-lg-4 hidden-sm"><div class="trm-main-card-frame trm-sidebar"><div class="trm-main-card"><div class="trm-mc-header"><div class="trm-avatar-frame trm-mb-20"><img alt="Avatar" class="trm-avatar" src="/xujianhu/images/logo/avatar.jpg"></div><h5 class="trm-name trm-mb-15">不情的歌</h5><div class="trm-label">I`m <span class="trm-typed-text"></span></div></div><div class="trm-divider trm-mb-40 trm-mt-40"></div><div class="trm-social"><a href="https://github.com" title="github" rel="nofollow" target="_blank"><i class="iconfont fab fa-github"></i> </a><a href="https://gitee.com" title="gitee" rel="nofollow" target="_blank"><i class="iconfont iconfont cg-gitee"></i></a></div><div class="trm-divider trm-mb-40 trm-mt-40"></div><ul class="trm-table trm-mb-20"><li><div class="trm-label">地址:</div><div class="trm-label trm-label-light">火星</div></li><li><div class="trm-label">年龄:</div><div class="trm-label trm-label-light">25</div></li></ul><div class="trm-divider trm-mb-40 trm-mt-40"></div><div class="text-center"><a href="mailto:951649211@qq.com" class="trm-btn">联系我 <i class="iconfont far fa-envelope"></i></a></div></div></div></div><div class="trm-page-content col-lg-8"><div id="trm-content" class="trm-content"><div class="trm-post-info row hidden-sm"><div class="col-sm-4"><div class="trm-card trm-label trm-label-light text-center"><i class="iconfont far fa-calendar-alt trm-icon"></i><br>10/09</div></div><div class="col-sm-4"><div class="trm-card trm-label trm-label-light text-center"><i class="iconfont far fa-clock trm-icon"></i><br>00:04</div></div><div class="col-sm-4"><div id="post-author" class="trm-card trm-label trm-label-light text-center"><i class="iconfont far fa-user trm-icon"></i><br>buqingdege</div></div></div><div class="trm-card"><article id="article-container" class="trm-publication"><h1 id="WSL-win10的linux编程接口"><a href="#WSL-win10的linux编程接口" class="headerlink" title="WSL win10的linux编程接口"></a>WSL win10的linux编程接口</h1><p><img src="https://raw.githubusercontent.com/e0528/tuchaung/main/image-20230412231055769.png" alt="image-20230412231055769" loading="lazy" onerror='this.onerror=null,this.src="/xujianhu/img/404.jpg"'></p><p><img src="https://raw.githubusercontent.com/e0528/tuchaung/main/image-20230412231251364.png" alt="image-20230412231251364" loading="lazy" onerror='this.onerror=null,this.src="/xujianhu/img/404.jpg"'></p><p>配置部署</p><p><img src="https://raw.githubusercontent.com/e0528/tuchaung/main/image-20230412231515755.png" alt="image-20230412231515755" loading="lazy" onerror='this.onerror=null,this.src="/xujianhu/img/404.jpg"'></p><p><img src="https://raw.githubusercontent.com/e0528/tuchaung/main/image-20230412231659737.png" alt="image-20230412231659737" loading="lazy" onerror='this.onerror=null,this.src="/xujianhu/img/404.jpg"'></p><p><img src="https://raw.githubusercontent.com/e0528/tuchaung/main/image-20230412231915267.png" alt="image-20230412231915267" loading="lazy" onerror='this.onerror=null,this.src="/xujianhu/img/404.jpg"'></p><h1 id="linux目录结构"><a href="#linux目录结构" class="headerlink" title="linux目录结构"></a>linux目录结构</h1><p><img src="https://raw.githubusercontent.com/e0528/tuchaung/main/image-20230412233724805.png" alt="image-20230412233724805" loading="lazy" onerror='this.onerror=null,this.src="/xujianhu/img/404.jpg"'></p><p><img src="https://raw.githubusercontent.com/e0528/tuchaung/main/image-20230412233855825.png" alt="image-20230412233855825" loading="lazy" onerror='this.onerror=null,this.src="/xujianhu/img/404.jpg"'></p><h2 id="linux命令入门"><a href="#linux命令入门" class="headerlink" title="linux命令入门"></a>linux命令入门</h2><p><img src="https://raw.githubusercontent.com/e0528/tuchaung/main/image-20230412235635310.png" alt="image-20230412235635310" loading="lazy" onerror='this.onerror=null,this.src="/xujianhu/img/404.jpg"'></p><p><img src="https://raw.githubusercontent.com/e0528/tuchaung/main/image-20230412235802159.png" alt="image-20230412235802159" loading="lazy" onerror='this.onerror=null,this.src="/xujianhu/img/404.jpg"'></p><h3 id="ls命令"><a href="#ls命令" class="headerlink" title="ls命令"></a>ls命令</h3><p><img src="https://raw.githubusercontent.com/e0528/tuchaung/main/image-20230413204426981.png" alt="image-20230413204426981" loading="lazy" onerror='this.onerror=null,this.src="/xujianhu/img/404.jpg"'></p><p>直接使用ls命令 以平铺的形式列出当前的工作目录的内容</p><p><img src="https://raw.githubusercontent.com/e0528/tuchaung/main/image-20230413205038012.png" alt="image-20230413205038012" loading="lazy" onerror='this.onerror=null,this.src="/xujianhu/img/404.jpg"'></p><p>默认加载home目录作为当前工作目录</p><p>home目录：每个linux系统的个人账户目录</p><p>&#x2F;home&#x2F;用户名</p><h4 id="ls命令的参数"><a href="#ls命令的参数" class="headerlink" title="ls命令的参数"></a>ls命令的参数</h4><p>绝对路径就是他的参数</p><h4 id="ls命令的选项"><a href="#ls命令的选项" class="headerlink" title="ls命令的选项"></a>ls命令的选项</h4><p><img src="https://raw.githubusercontent.com/e0528/tuchaung/main/image-20230413210721676.png" alt="image-20230413210721676" loading="lazy" onerror='this.onerror=null,this.src="/xujianhu/img/404.jpg"'></p><ul><li><p><strong>ls命令的 -a 选项</strong> 显示全部文件包括隐藏文件</p><p>linux中的隐藏文件前面加.</p></li></ul><p><img src="https://raw.githubusercontent.com/e0528/tuchaung/main/image-20230413205814047.png" alt="image-20230413205814047" loading="lazy" onerror='this.onerror=null,this.src="/xujianhu/img/404.jpg"'></p><ul><li><strong>ls命令的-l选项</strong> 等价与ll命令</li></ul><p><img src="https://raw.githubusercontent.com/e0528/tuchaung/main/image-20230413205912507.png" alt="image-20230413205912507" loading="lazy" onerror='this.onerror=null,this.src="/xujianhu/img/404.jpg"'></p><ul><li>可以同时使用多个选项 和参数</li></ul><p><img src="https://raw.githubusercontent.com/e0528/tuchaung/main/image-20230413210137133.png" alt="image-20230413210137133" loading="lazy" onerror='this.onerror=null,this.src="/xujianhu/img/404.jpg"'></p><p><img src="https://raw.githubusercontent.com/e0528/tuchaung/main/image-20230413210252545.png" alt="image-20230413210252545" loading="lazy" onerror='this.onerror=null,this.src="/xujianhu/img/404.jpg"'></p><ul><li><p><strong>ls -h命令</strong> 以利于阅读的形式展示</p><p>文件大小只有数字没有单位 默认就是byte</p><p>使用—h命令必须与-l一起使用才能有意义 单独使用无效</p><p>适用于看大文件大小</p></li></ul><p><img src="https://raw.githubusercontent.com/e0528/tuchaung/main/image-20230413210515570.png" alt="image-20230413210515570" loading="lazy" onerror='this.onerror=null,this.src="/xujianhu/img/404.jpg"'></p><h3 id="cd命令切换工作目录"><a href="#cd命令切换工作目录" class="headerlink" title="cd命令切换工作目录"></a>cd命令切换工作目录</h3><p><img src="https://raw.githubusercontent.com/e0528/tuchaung/main/image-20230413210803480.png" alt="image-20230413210803480" loading="lazy" onerror='this.onerror=null,this.src="/xujianhu/img/404.jpg"'></p><p>参数 路径可选 如果不写 就回到home目录</p><h3 id="pwd-查看当前工作目录"><a href="#pwd-查看当前工作目录" class="headerlink" title="pwd 查看当前工作目录"></a>pwd 查看当前工作目录</h3><p><img src="https://raw.githubusercontent.com/e0528/tuchaung/main/image-20230413211206789.png" alt="image-20230413211206789" loading="lazy" onerror='this.onerror=null,this.src="/xujianhu/img/404.jpg"'></p><p><img src="https://raw.githubusercontent.com/e0528/tuchaung/main/image-20230413211225856.png" alt="image-20230413211225856" loading="lazy" onerror='this.onerror=null,this.src="/xujianhu/img/404.jpg"'></p><p><img src="https://raw.githubusercontent.com/e0528/tuchaung/main/image-20230413211316037.png" alt="image-20230413211316037" loading="lazy" onerror='this.onerror=null,this.src="/xujianhu/img/404.jpg"'></p><h3 id="相对路径-绝对路径-特殊路径表示符"><a href="#相对路径-绝对路径-特殊路径表示符" class="headerlink" title="相对路径 绝对路径 特殊路径表示符"></a>相对路径 绝对路径 特殊路径表示符</h3><p><img src="https://raw.githubusercontent.com/e0528/tuchaung/main/image-20230413211556129.png" alt="image-20230413211556129" loading="lazy" onerror='this.onerror=null,this.src="/xujianhu/img/404.jpg"'></p><p><img src="https://raw.githubusercontent.com/e0528/tuchaung/main/image-20230413211615462.png" alt="image-20230413211615462" loading="lazy" onerror='this.onerror=null,this.src="/xujianhu/img/404.jpg"'></p><p><img src="https://raw.githubusercontent.com/e0528/tuchaung/main/image-20230413211845219.png" alt="image-20230413211845219" loading="lazy" onerror='this.onerror=null,this.src="/xujianhu/img/404.jpg"'></p><p><img src="https://raw.githubusercontent.com/e0528/tuchaung/main/image-20230413213045255.png" alt="image-20230413213045255" loading="lazy" onerror='this.onerror=null,this.src="/xujianhu/img/404.jpg"'></p><h3 id="mkdir命令-创建文件夹"><a href="#mkdir命令-创建文件夹" class="headerlink" title="mkdir命令 创建文件夹"></a>mkdir命令 创建文件夹</h3><p><img src="https://raw.githubusercontent.com/e0528/tuchaung/main/image-20230413213706924.png" alt="image-20230413213706924" loading="lazy" onerror='this.onerror=null,this.src="/xujianhu/img/404.jpg"'></p><p><img src="https://raw.githubusercontent.com/e0528/tuchaung/main/image-20230413214026638.png" alt="image-20230413214026638" loading="lazy" onerror='this.onerror=null,this.src="/xujianhu/img/404.jpg"'></p><p><img src="https://raw.githubusercontent.com/e0528/tuchaung/main/image-20230413214333122.png" alt="image-20230413214333122" loading="lazy" onerror='this.onerror=null,this.src="/xujianhu/img/404.jpg"'></p><p>创建文件夹由于权限问题必须在home文件夹</p><h3 id="rm命令-删除文件或目录"><a href="#rm命令-删除文件或目录" class="headerlink" title="rm命令 删除文件或目录"></a>rm命令 删除文件或目录</h3><p>①命令格式</p><p>rm [选项]… 文件</p><p>​ rmdir [选项]… 目录</p><p>②命令功能</p><p>rm 可删文件和目录（-r 参数）</p><p>​ rmdir 只可以删空的目录，基本用 rm 就可以替代 rmdir</p><p>③最常用参数</p><p>​ rm -r 递归删子，想删文件夹必带此参数</p><p>rm -i 交互式删除，有一个确认的步骤，y 或者 yes 确认删除，n 或者 no 取消删除。</p><p>rm -f 没有任何提示，冷暴力</p><p>rm -v 显示 log</p><p>rmdir -p 递归删除目录</p><p>rmdir -v 显示 log</p><p>④例子</p><p>​ 1：直接删除 temp 文件夹下的所有文件，顺便看一下步骤</p><p>​ rm -rfv temp</p><p>​ 2：删除当前路径下 2013 开头的的 log 文件，一 一确认</p><p>​ rm -i 2013*.log</p><p><img src="https://raw.githubusercontent.com/e0528/tuchaung/main/image-20230413220958937.png" alt="image-20230413220958937" loading="lazy" onerror='this.onerror=null,this.src="/xujianhu/img/404.jpg"'></p><p>通配符匹配删除</p><p><img src="https://raw.githubusercontent.com/e0528/tuchaung/main/image-20230413221351327.png" alt="image-20230413221351327" loading="lazy" onerror='this.onerror=null,this.src="/xujianhu/img/404.jpg"'></p><p>切换到超级管理员</p><p><img src="https://raw.githubusercontent.com/e0528/tuchaung/main/image-20230413221718042.png" alt="image-20230413221718042" loading="lazy" onerror='this.onerror=null,this.src="/xujianhu/img/404.jpg"'></p><p><img src="https://raw.githubusercontent.com/e0528/tuchaung/main/image-20230413222011728.png" alt="image-20230413222011728" loading="lazy" onerror='this.onerror=null,this.src="/xujianhu/img/404.jpg"'></p><h3 id="touch创建文件-cat查看文件-more分页查看文件"><a href="#touch创建文件-cat查看文件-more分页查看文件" class="headerlink" title="touch创建文件 cat查看文件 more分页查看文件"></a>touch创建文件 cat查看文件 more分页查看文件</h3><p><img src="https://raw.githubusercontent.com/e0528/tuchaung/main/image-20230413214942487.png" alt="image-20230413214942487" loading="lazy" onerror='this.onerror=null,this.src="/xujianhu/img/404.jpg"'></p><p>没有参数 直接就是路径</p><p>文件夹是有颜色的 文件白色，开头带d的是文件夹 -是文件</p><p><img src="https://raw.githubusercontent.com/e0528/tuchaung/main/image-20230413215129886.png" alt="image-20230413215129886" loading="lazy" onerror='this.onerror=null,this.src="/xujianhu/img/404.jpg"'></p><p>cat</p><p><img src="https://raw.githubusercontent.com/e0528/tuchaung/main/image-20230413215635658.png" alt="image-20230413215635658" loading="lazy" onerror='this.onerror=null,this.src="/xujianhu/img/404.jpg"'></p><p>more 分页查看长文件</p><p><img src="https://raw.githubusercontent.com/e0528/tuchaung/main/image-20230413215649616.png" alt="image-20230413215649616" loading="lazy" onerror='this.onerror=null,this.src="/xujianhu/img/404.jpg"'></p><p>按回车一个一个的往下滚动</p><p>按空格翻下一页</p><p>按q退出查看</p><h3 id="cp复制文件、文件夹"><a href="#cp复制文件、文件夹" class="headerlink" title="cp复制文件、文件夹"></a>cp复制文件、文件夹</h3><p><img src="https://raw.githubusercontent.com/e0528/tuchaung/main/image-20230413220058761.png" alt="image-20230413220058761" loading="lazy" onerror='this.onerror=null,this.src="/xujianhu/img/404.jpg"'></p><p><img src="https://raw.githubusercontent.com/e0528/tuchaung/main/image-20230413220420134.png" alt="image-20230413220420134" loading="lazy" onerror='this.onerror=null,this.src="/xujianhu/img/404.jpg"'></p><h3 id="mv-命令移动文件、文件夹"><a href="#mv-命令移动文件、文件夹" class="headerlink" title="mv 命令移动文件、文件夹"></a>mv 命令移动文件、文件夹</h3><p><img src="https://raw.githubusercontent.com/e0528/tuchaung/main/image-20230413220459950.png" alt="image-20230413220459950" loading="lazy" onerror='this.onerror=null,this.src="/xujianhu/img/404.jpg"'></p><p><img src="https://raw.githubusercontent.com/e0528/tuchaung/main/image-20230413220824634.png" alt="image-20230413220824634" loading="lazy" onerror='this.onerror=null,this.src="/xujianhu/img/404.jpg"'></p><p>既可以移动也可以重命名</p><h3 id="which命令-查找命令程序所在"><a href="#which命令-查找命令程序所在" class="headerlink" title="which命令 查找命令程序所在"></a>which命令 查找命令程序所在</h3><p><img src="https://raw.githubusercontent.com/e0528/tuchaung/main/image-20230413222928319.png" alt="image-20230413222928319" loading="lazy" onerror='this.onerror=null,this.src="/xujianhu/img/404.jpg"'></p><p><img src="https://raw.githubusercontent.com/e0528/tuchaung/main/image-20230413223032847.png" alt="image-20230413223032847" loading="lazy" onerror='this.onerror=null,this.src="/xujianhu/img/404.jpg"'></p><h3 id="find查找文件路径"><a href="#find查找文件路径" class="headerlink" title="find查找文件路径"></a>find查找文件路径</h3><p><strong>按照文件名查找find 起始路径 -name “文件名”</strong></p><p><img src="https://raw.githubusercontent.com/e0528/tuchaung/main/image-20230413223220036.png" alt="image-20230413223220036" loading="lazy" onerror='this.onerror=null,this.src="/xujianhu/img/404.jpg"'></p><p><strong>也支持通配符搜索</strong></p><p><img src="https://raw.githubusercontent.com/e0528/tuchaung/main/image-20230413223548683.png" alt="image-20230413223548683" loading="lazy" onerror='this.onerror=null,this.src="/xujianhu/img/404.jpg"'></p><p><strong>按照文件大小查找文件</strong></p><p><img src="https://raw.githubusercontent.com/e0528/tuchaung/main/image-20230413223847909.png" alt="image-20230413223847909" loading="lazy" onerror='this.onerror=null,this.src="/xujianhu/img/404.jpg"'></p><p>+加号是大于-是小于 k小写 M G大写</p><h3 id="文件的内容操作"><a href="#文件的内容操作" class="headerlink" title="文件的内容操作"></a>文件的内容操作</h3><h4 id="grep命令-用于筛选出某文件中包含关键字的行"><a href="#grep命令-用于筛选出某文件中包含关键字的行" class="headerlink" title="grep命令 用于筛选出某文件中包含关键字的行"></a>grep命令 用于筛选出某文件中包含关键字的行</h4><p><img src="https://raw.githubusercontent.com/e0528/tuchaung/main/image-20230413224936803.png" alt="image-20230413224936803" loading="lazy" onerror='this.onerror=null,this.src="/xujianhu/img/404.jpg"'></p><p><img src="https://raw.githubusercontent.com/e0528/tuchaung/main/image-20230413224920257.png" alt="image-20230413224920257" loading="lazy" onerror='this.onerror=null,this.src="/xujianhu/img/404.jpg"'></p><h4 id="wc命令做数量统计"><a href="#wc命令做数量统计" class="headerlink" title="wc命令做数量统计"></a>wc命令做数量统计</h4><p><img src="https://raw.githubusercontent.com/e0528/tuchaung/main/image-20230413225316179.png" alt="image-20230413225316179" loading="lazy" onerror='this.onerror=null,this.src="/xujianhu/img/404.jpg"'></p><p><img src="https://raw.githubusercontent.com/e0528/tuchaung/main/image-20230413225601169.png" alt="image-20230413225601169" loading="lazy" onerror='this.onerror=null,this.src="/xujianhu/img/404.jpg"'></p><h4 id="管道符-左边结果作为右边的内容输入"><a href="#管道符-左边结果作为右边的内容输入" class="headerlink" title="|管道符 左边结果作为右边的内容输入"></a>|管道符 左边结果作为右边的内容输入</h4><p><img src="https://raw.githubusercontent.com/e0528/tuchaung/main/image-20230413230105585.png" alt="image-20230413230105585" loading="lazy" onerror='this.onerror=null,this.src="/xujianhu/img/404.jpg"'></p><p><img src="https://raw.githubusercontent.com/e0528/tuchaung/main/image-20230413230035029.png" alt="image-20230413230035029" loading="lazy" onerror='this.onerror=null,this.src="/xujianhu/img/404.jpg"'></p><p><img src="https://raw.githubusercontent.com/e0528/tuchaung/main/image-20230413230403586.png" alt="image-20230413230403586" loading="lazy" onerror='this.onerror=null,this.src="/xujianhu/img/404.jpg"'></p><p><img src="https://raw.githubusercontent.com/e0528/tuchaung/main/image-20230413230447629.png" alt="image-20230413230447629" loading="lazy" onerror='this.onerror=null,this.src="/xujianhu/img/404.jpg"'></p><p>有了管道符可以筛选出想看的内容</p><p>查看有多少个文件</p><p><img src="https://raw.githubusercontent.com/e0528/tuchaung/main/image-20230413230526665.png" alt="image-20230413230526665" loading="lazy" onerror='this.onerror=null,this.src="/xujianhu/img/404.jpg"'></p><p>多层嵌套管道符</p><p><img src="https://raw.githubusercontent.com/e0528/tuchaung/main/image-20230413231203070.png" alt="image-20230413231203070" loading="lazy" onerror='this.onerror=null,this.src="/xujianhu/img/404.jpg"'></p><p><img src="https://raw.githubusercontent.com/e0528/tuchaung/main/image-20230413231234399.png" alt="image-20230413231234399" loading="lazy" onerror='this.onerror=null,this.src="/xujianhu/img/404.jpg"'></p><h4 id="echo命令"><a href="#echo命令" class="headerlink" title="echo命令"></a>echo命令</h4><p><img src="https://raw.githubusercontent.com/e0528/tuchaung/main/image-20230414223725602.png" alt="image-20230414223725602" loading="lazy" onerror='this.onerror=null,this.src="/xujianhu/img/404.jpg"'></p><p><strong>（1）使用反引号 包裹 可以让命令执行而不是输出文本</strong></p><p><img src="https://raw.githubusercontent.com/e0528/tuchaung/main/image-20230414224038453.png" alt="image-20230414224038453" loading="lazy" onerror='this.onerror=null,this.src="/xujianhu/img/404.jpg"'></p><h4 id="重定向符-覆写和追加"><a href="#重定向符-覆写和追加" class="headerlink" title="重定向符 覆写和追加"></a>重定向符 覆写和追加</h4><p><img src="https://raw.githubusercontent.com/e0528/tuchaung/main/image-20230414224124916.png" alt="image-20230414224124916" loading="lazy" onerror='this.onerror=null,this.src="/xujianhu/img/404.jpg"'></p><p>重定向符号左边的结果集不仅可以是echo的结果 还可以是任何有结果集的内容 比如 ls &gt; test.txt</p><h4 id="tail命令-可以查看文件的尾部向前的内容-跟踪改变"><a href="#tail命令-可以查看文件的尾部向前的内容-跟踪改变" class="headerlink" title="tail命令  可以查看文件的尾部向前的内容 跟踪改变"></a>tail命令 可以查看文件的尾部向前的内容 跟踪改变</h4><p><img src="https://raw.githubusercontent.com/e0528/tuchaung/main/image-20230414224623333.png" alt="image-20230414224623333" loading="lazy" onerror='this.onerror=null,this.src="/xujianhu/img/404.jpg"'></p><p>比如 我想从后往前看一个文件内容 tail &#x2F;home&#x2F;用户&#x2F;test.txt</p><p><img src="https://raw.githubusercontent.com/e0528/tuchaung/main/image-20230414224725102.png" alt="image-20230414224725102" loading="lazy" onerror='this.onerror=null,this.src="/xujianhu/img/404.jpg"'></p><p><strong>默认查看尾部的10行</strong></p><p><strong>-num选项 查看尾部多少行</strong></p><p><strong>-f 选项 follow 追踪文件的变化</strong></p><p><img src="https://raw.githubusercontent.com/e0528/tuchaung/main/image-20230414224915365.png" alt="image-20230414224915365" loading="lazy" onerror='this.onerror=null,this.src="/xujianhu/img/404.jpg"'></p><p>使用了-f选项后 变成了监听状态 只要文件改变 就重新输出 ctrl+c强制停止</p><p><img src="https://raw.githubusercontent.com/e0528/tuchaung/main/image-20230414231129836.png" alt="image-20230414231129836" loading="lazy" onerror='this.onerror=null,this.src="/xujianhu/img/404.jpg"'></p><h2 id="vi-vim编辑器"><a href="#vi-vim编辑器" class="headerlink" title="vi vim编辑器"></a>vi vim编辑器</h2><p><img src="C:/Users/xujianhu/AppData/Roaming/Typora/typora-user-images/image-20230414232459319.png" alt="image-20230414232459319" loading="lazy" onerror='this.onerror=null,this.src="/xujianhu/img/404.jpg"'></p><p><img src="https://raw.githubusercontent.com/e0528/tuchaung/main/image-20230414232651264.png" alt="image-20230414232651264" loading="lazy" onerror='this.onerror=null,this.src="/xujianhu/img/404.jpg"'></p><p>命令模式下</p><p>按两下yy 复制一行 p粘贴</p><p>按两下dd 删除一行</p><p>按u撤销</p><p><img src="https://raw.githubusercontent.com/e0528/tuchaung/main/image-20230414233137071.png" alt="image-20230414233137071" loading="lazy" onerror='this.onerror=null,this.src="/xujianhu/img/404.jpg"'></p><p><img src="https://raw.githubusercontent.com/e0528/tuchaung/main/image-20230414233750101.png" alt="image-20230414233750101" loading="lazy" onerror='this.onerror=null,this.src="/xujianhu/img/404.jpg"'></p><p><img src="https://raw.githubusercontent.com/e0528/tuchaung/main/image-20230414233803249.png" alt="image-20230414233803249" loading="lazy" onerror='this.onerror=null,this.src="/xujianhu/img/404.jpg"'></p><p><img src="https://raw.githubusercontent.com/e0528/tuchaung/main/image-20230414234320746.png" alt="image-20230414234320746" loading="lazy" onerror='this.onerror=null,this.src="/xujianhu/img/404.jpg"'></p><h2 id="linux-用户"><a href="#linux-用户" class="headerlink" title="linux 用户"></a>linux 用户</h2><h3 id="linux-root用户"><a href="#linux-root用户" class="headerlink" title="linux root用户"></a>linux root用户</h3><p><img src="https://raw.githubusercontent.com/e0528/tuchaung/main/image-20230415202448716.webp" alt="image-20230415202448716" loading="lazy" onerror='this.onerror=null,this.src="/xujianhu/img/404.jpg"'></p><p><img src="https://raw.githubusercontent.com/e0528/tuchaung/main/image-20230415202658556.webp" alt="image-20230415202658556" loading="lazy" onerror='this.onerror=null,this.src="/xujianhu/img/404.jpg"'></p><p><img src="https://raw.githubusercontent.com/e0528/tuchaung/main/image-20230415202741909.webp" alt="image-20230415202741909" loading="lazy" onerror='this.onerror=null,this.src="/xujianhu/img/404.jpg"'></p><p>su - 用户名</p><p>su - 后面不写root也是直接就是切换到root用户</p><p>ctrl+d 或者 exit 或者 logout 都可以退出</p><p><img src="https://raw.githubusercontent.com/e0528/tuchaung/main/image-20230415203442275.webp" alt="image-20230415203442275" loading="lazy" onerror='this.onerror=null,this.src="/xujianhu/img/404.jpg"'></p><p>sudo 命令是临时使用管理员权限 但不是所有用户都能用sudo 必须是配置了sudo认证的用户才能使用sudo</p><p><img src="https://raw.githubusercontent.com/e0528/tuchaung/main/image-20230415204858162.webp" alt="image-20230415204858162" loading="lazy" onerror='this.onerror=null,this.src="/xujianhu/img/404.jpg"'></p><h3 id="linux-用户与用户组"><a href="#linux-用户与用户组" class="headerlink" title="linux 用户与用户组"></a>linux 用户与用户组</h3><p><img src="https://raw.githubusercontent.com/e0528/tuchaung/main/image-20230415211110820.webp" alt="image-20230415211110820" loading="lazy" onerror='this.onerror=null,this.src="/xujianhu/img/404.jpg"'></p><p><strong>用户组管理</strong></p><p><img src="https://raw.githubusercontent.com/e0528/tuchaung/main/image-20230415211327939.webp" alt="image-20230415211327939" loading="lazy" onerror='this.onerror=null,this.src="/xujianhu/img/404.jpg"'></p><p><strong>用户管理</strong></p><p><img src="https://raw.githubusercontent.com/e0528/tuchaung/main/image-20230415211427217.webp" alt="image-20230415211427217" loading="lazy" onerror='this.onerror=null,this.src="/xujianhu/img/404.jpg"'></p><p><img src="https://raw.githubusercontent.com/e0528/tuchaung/main/image-20230415211702175.webp" alt="image-20230415211702175" loading="lazy" onerror='this.onerror=null,this.src="/xujianhu/img/404.jpg"'></p><p><strong>passwd testuser 给已创建的用户testuser设置密码</strong></p><p>直接id就是查看自己 id+用户名 管理员看到任何用户</p><p><img src="https://raw.githubusercontent.com/e0528/tuchaung/main/image-20230415211938860.webp" alt="image-20230415211938860" loading="lazy" onerror='this.onerror=null,this.src="/xujianhu/img/404.jpg"'></p><p><img src="https://raw.githubusercontent.com/e0528/tuchaung/main/image-20230415212158729.webp" alt="image-20230415212158729" loading="lazy" onerror='this.onerror=null,this.src="/xujianhu/img/404.jpg"'></p><p>协商 getent passwd 可以查看系统中有哪些用户</p><p><img src="https://raw.githubusercontent.com/e0528/tuchaung/main/image-20230415212423631.webp" alt="image-20230415212423631" loading="lazy" onerror='this.onerror=null,this.src="/xujianhu/img/404.jpg"'></p><p>查看有哪些组</p><p><img src="https://raw.githubusercontent.com/e0528/tuchaung/main/image-20230415212523896.webp" alt="image-20230415212523896" loading="lazy" onerror='this.onerror=null,this.src="/xujianhu/img/404.jpg"'></p><h3 id="查看权限信息"><a href="#查看权限信息" class="headerlink" title="查看权限信息"></a>查看权限信息</h3><p><img src="https://raw.githubusercontent.com/e0528/tuchaung/main/image-20230415213501775.webp" alt="image-20230415213501775" loading="lazy" onerror='this.onerror=null,this.src="/xujianhu/img/404.jpg"'></p><p><img src="https://raw.githubusercontent.com/e0528/tuchaung/main/image-20230415213643338.webp" alt="image-20230415213643338" loading="lazy" onerror='this.onerror=null,this.src="/xujianhu/img/404.jpg"'></p><p>第一位是表示文件类型</p><p>前三位是所属用户权限</p><p>中间三位是用户组</p><p>后三位是其他用户权限</p><p><img src="https://raw.githubusercontent.com/e0528/tuchaung/main/image-20230415214206832.webp" alt="image-20230415214206832" loading="lazy" onerror='this.onerror=null,this.src="/xujianhu/img/404.jpg"'></p><p>x:excute 执行 是否有cd进这个目录当做工作目录的权限</p><p>比如根目录 普通用户 r-x权限</p><h3 id="chmod-命令-修改权限信息"><a href="#chmod-命令-修改权限信息" class="headerlink" title="chmod 命令 修改权限信息"></a>chmod 命令 修改权限信息</h3><p><img src="https://raw.githubusercontent.com/e0528/tuchaung/main/image-20230415215409703.webp" alt="image-20230415215409703" loading="lazy" onerror='this.onerror=null,this.src="/xujianhu/img/404.jpg"'></p><p><img src="https://raw.githubusercontent.com/e0528/tuchaung/main/image-20230415215925806.webp" alt="image-20230415215925806" loading="lazy" onerror='this.onerror=null,this.src="/xujianhu/img/404.jpg"'></p><p><img src="https://raw.githubusercontent.com/e0528/tuchaung/main/image-20230415215944346.webp" alt="image-20230415215944346" loading="lazy" onerror='this.onerror=null,this.src="/xujianhu/img/404.jpg"'></p><p>也可以是二进制表示 001 就是仅有x 换算成10进制就是1 100也就是4 101就是5 110就是6 仅有rw-</p><p><img src="https://raw.githubusercontent.com/e0528/tuchaung/main/image-20230415220643797.webp" alt="image-20230415220643797" loading="lazy" onerror='this.onerror=null,this.src="/xujianhu/img/404.jpg"'></p><p><img src="https://raw.githubusercontent.com/e0528/tuchaung/main/image-20230415220711295.webp" alt="image-20230415220711295" loading="lazy" onerror='this.onerror=null,this.src="/xujianhu/img/404.jpg"'></p><h3 id="chown命令-修改文件、文件夹所属用户用户组"><a href="#chown命令-修改文件、文件夹所属用户用户组" class="headerlink" title="chown命令 修改文件、文件夹所属用户用户组"></a>chown命令 修改文件、文件夹所属用户用户组</h3><p><img src="https://raw.githubusercontent.com/e0528/tuchaung/main/image-20230415223846154.webp" alt="image-20230415223846154" loading="lazy" onerror='this.onerror=null,this.src="/xujianhu/img/404.jpg"'></p><p><img src="https://raw.githubusercontent.com/e0528/tuchaung/main/image-20230415223846154.webp" alt="image-20230415223846154" loading="lazy" onerror='this.onerror=null,this.src="/xujianhu/img/404.jpg"'></p><h2 id="常用快捷键"><a href="#常用快捷键" class="headerlink" title="常用快捷键"></a>常用快捷键</h2><h3 id="ctrl-c-强制停止"><a href="#ctrl-c-强制停止" class="headerlink" title="ctrl+c 强制停止"></a>ctrl+c 强制停止</h3><p><img src="https://raw.githubusercontent.com/e0528/tuchaung/main/image-20230415230300353.webp" alt="image-20230415230300353" loading="lazy" onerror='this.onerror=null,this.src="/xujianhu/img/404.jpg"'></p><p><img src="https://raw.githubusercontent.com/e0528/tuchaung/main/image-20230415230328723.webp" alt="image-20230415230328723" loading="lazy" onerror='this.onerror=null,this.src="/xujianhu/img/404.jpg"'></p><p>Python linux自带</p><h3 id="histoy-查看历史命令"><a href="#histoy-查看历史命令" class="headerlink" title="histoy 查看历史命令"></a><strong>histoy</strong> 查看历史命令</h3><p><img src="https://raw.githubusercontent.com/e0528/tuchaung/main/image-20230415230442844.webp" alt="image-20230415230442844" loading="lazy" onerror='this.onerror=null,this.src="/xujianhu/img/404.jpg"'></p><p><img src="https://raw.githubusercontent.com/e0528/tuchaung/main/image-20230415230522405.webp" alt="image-20230415230522405" loading="lazy" onerror='this.onerror=null,this.src="/xujianhu/img/404.jpg"'></p><p>history也可以用管道符</p><h3 id="！匹配命令"><a href="#！匹配命令" class="headerlink" title="！匹配命令"></a>！<strong>匹配命令</strong></h3><p><img src="https://raw.githubusercontent.com/e0528/tuchaung/main/image-20230415230807563.webp" alt="image-20230415230807563" loading="lazy" onerror='this.onerror=null,this.src="/xujianhu/img/404.jpg"'></p><p><img src="https://raw.githubusercontent.com/e0528/tuchaung/main/image-20230415230741102.webp" alt="image-20230415230741102" loading="lazy" onerror='this.onerror=null,this.src="/xujianhu/img/404.jpg"'></p><p>!p 以p开头的上一个命令 ！匹配上一个匹配前缀的命令</p><p>不要搜索太久的 不容易命中 用于短暂搜索快</p><h3 id="ctrl-r-搜索历史命令"><a href="#ctrl-r-搜索历史命令" class="headerlink" title="ctrl+r 搜索历史命令"></a>ctrl+r 搜索历史命令</h3><p><img src="https://raw.githubusercontent.com/e0528/tuchaung/main/image-20230415231051528.webp" alt="image-20230415231051528" loading="lazy" onerror='this.onerror=null,this.src="/xujianhu/img/404.jpg"'></p><h3 id="命令光标移动快捷键"><a href="#命令光标移动快捷键" class="headerlink" title="命令光标移动快捷键"></a>命令光标移动快捷键</h3><p><img src="https://raw.githubusercontent.com/e0528/tuchaung/main/image-20230415232329785.webp" alt="image-20230415232329785" loading="lazy" onerror='this.onerror=null,this.src="/xujianhu/img/404.jpg"'></p><h3 id="清屏"><a href="#清屏" class="headerlink" title="清屏"></a>清屏</h3><p><img src="https://raw.githubusercontent.com/e0528/tuchaung/main/image-20230415232540366.webp" alt="image-20230415232540366" loading="lazy" onerror='this.onerror=null,this.src="/xujianhu/img/404.jpg"'></p><p><img src="https://raw.githubusercontent.com/e0528/tuchaung/main/image-20230415232636573.webp" alt="image-20230415232636573" loading="lazy" onerror='this.onerror=null,this.src="/xujianhu/img/404.jpg"'></p><h2 id="软件"><a href="#软件" class="headerlink" title="软件"></a>软件</h2><p><img src="https://raw.githubusercontent.com/e0528/tuchaung/main/image-20230415232729517.webp" alt="image-20230415232729517" loading="lazy" onerror='this.onerror=null,this.src="/xujianhu/img/404.jpg"'></p><h3 id="yum-apt包管理"><a href="#yum-apt包管理" class="headerlink" title="yum apt包管理"></a>yum apt包管理</h3><p><img src="https://raw.githubusercontent.com/e0528/tuchaung/main/image-20230415232842573.webp" alt="image-20230415232842573" loading="lazy" onerror='this.onerror=null,this.src="/xujianhu/img/404.jpg"'></p><p>win:.exe</p><p>mac:.pkg</p><p>centOS:.rpm</p><p>Ubuntu:.deb</p><p>命令行包管理更方便</p><p>yum需要root权限</p><p><img src="https://raw.githubusercontent.com/e0528/tuchaung/main/image-20230415233111467.webp" alt="image-20230415233111467" loading="lazy" onerror='this.onerror=null,this.src="/xujianhu/img/404.jpg"'></p><p><img src="https://raw.githubusercontent.com/e0528/tuchaung/main/image-20230415234209846.webp" alt="image-20230415234209846" loading="lazy" onerror='this.onerror=null,this.src="/xujianhu/img/404.jpg"'></p><h3 id="systemctl命令-系统服务管理"><a href="#systemctl命令-系统服务管理" class="headerlink" title="systemctl命令 系统服务管理"></a>systemctl命令 系统服务管理</h3><p><img src="https://raw.githubusercontent.com/e0528/tuchaung/main/image-20230415234734205.webp" alt="image-20230415234734205" loading="lazy" onerror='this.onerror=null,this.src="/xujianhu/img/404.jpg"'></p><p>systemctl status firewalld</p><p><img src="https://raw.githubusercontent.com/e0528/tuchaung/main/image-20230415235150638.webp" alt="image-20230415235150638" loading="lazy" onerror='this.onerror=null,this.src="/xujianhu/img/404.jpg"'></p><p><img src="https://raw.githubusercontent.com/e0528/tuchaung/main/image-20230415235843371.webp" alt="image-20230415235843371" loading="lazy" onerror='this.onerror=null,this.src="/xujianhu/img/404.jpg"'></p><p><img src="https://raw.githubusercontent.com/e0528/tuchaung/main/image-20230415235951566.webp" alt="image-20230415235951566" loading="lazy" onerror='this.onerror=null,this.src="/xujianhu/img/404.jpg"'></p><h3 id="软连接-：快捷方式"><a href="#软连接-：快捷方式" class="headerlink" title="软连接 ：快捷方式"></a>软连接 ：快捷方式</h3><p><img src="https://raw.githubusercontent.com/e0528/tuchaung/main/image-20230418210047208.webp" alt="image-20230418210047208" loading="lazy" onerror='this.onerror=null,this.src="/xujianhu/img/404.jpg"'></p><p><img src="https://raw.githubusercontent.com/e0528/tuchaung/main/image-20230418210425443.webp" alt="image-20230418210425443" loading="lazy" onerror='this.onerror=null,this.src="/xujianhu/img/404.jpg"'></p><p>带有L就代表快捷方式</p><p><img src="https://raw.githubusercontent.com/e0528/tuchaung/main/image-20230418211744551.webp" alt="image-20230418211744551" loading="lazy" onerror='this.onerror=null,this.src="/xujianhu/img/404.jpg"'></p><h3 id="日期和时区"><a href="#日期和时区" class="headerlink" title="日期和时区"></a>日期和时区</h3><p><img src="https://raw.githubusercontent.com/e0528/tuchaung/main/image-20230418212535170.webp" alt="image-20230418212535170" loading="lazy" onerror='this.onerror=null,this.src="/xujianhu/img/404.jpg"'></p><p><img src="https://raw.githubusercontent.com/e0528/tuchaung/main/image-20230418212504423.webp" alt="image-20230418212504423" loading="lazy" onerror='this.onerror=null,this.src="/xujianhu/img/404.jpg"'></p><p><img src="https://raw.githubusercontent.com/e0528/tuchaung/main/image-20230418213031183.webp" alt="image-20230418213031183" loading="lazy" onerror='this.onerror=null,this.src="/xujianhu/img/404.jpg"'></p><p><strong>中国式东八区 而linux显示UTC时区</strong></p><p><img src="https://raw.githubusercontent.com/e0528/tuchaung/main/image-20230418213232275.webp" alt="image-20230418213232275" loading="lazy" onerror='this.onerror=null,this.src="/xujianhu/img/404.jpg"'></p><p><img src="https://raw.githubusercontent.com/e0528/tuchaung/main/image-20230418213426745.webp" alt="image-20230418213426745" loading="lazy" onerror='this.onerror=null,this.src="/xujianhu/img/404.jpg"'></p><p><strong>自动同步时间</strong></p><p><img src="https://raw.githubusercontent.com/e0528/tuchaung/main/image-20230418214708658.webp" alt="image-20230418214708658" loading="lazy" onerror='this.onerror=null,this.src="/xujianhu/img/404.jpg"'></p><h3 id="ip地址和主机名"><a href="#ip地址和主机名" class="headerlink" title="ip地址和主机名"></a>ip地址和主机名</h3><h4 id="IP地址"><a href="#IP地址" class="headerlink" title="IP地址"></a>IP地址</h4><p><img src="https://raw.githubusercontent.com/e0528/tuchaung/main/image-20230418215619911.webp" alt="image-20230418215619911" loading="lazy" onerror='this.onerror=null,this.src="/xujianhu/img/404.jpg"'></p><p><img src="https://raw.githubusercontent.com/e0528/tuchaung/main/image-20230418215912837.webp" alt="image-20230418215912837" loading="lazy" onerror='this.onerror=null,this.src="/xujianhu/img/404.jpg"'></p><p><img src="https://raw.githubusercontent.com/e0528/tuchaung/main/image-20230418220011972.webp" alt="image-20230418220011972" loading="lazy" onerror='this.onerror=null,this.src="/xujianhu/img/404.jpg"'></p><h4 id="主机名"><a href="#主机名" class="headerlink" title="主机名"></a>主机名</h4><p><img src="https://raw.githubusercontent.com/e0528/tuchaung/main/image-20230418220213572.webp" alt="image-20230418220213572" loading="lazy" onerror='this.onerror=null,this.src="/xujianhu/img/404.jpg"'></p><p><img src="https://raw.githubusercontent.com/e0528/tuchaung/main/image-20230418220314330.webp" alt="image-20230418220314330" loading="lazy" onerror='this.onerror=null,this.src="/xujianhu/img/404.jpg"'></p></article></div><div class="trm-post-next-prev row"><div class="col-lg-12"><h5 class="trm-title-with-divider">其他文章 <span data-number="02"></span></h5></div><div class="col-lg-6"><div class="trm-blog-card trm-scroll-animation"><a href="/xujianhu/%E5%90%8E%E7%AB%AF/limit%E5%92%8Coffset%E7%94%A8%E6%B3%95/" class="trm-cover-frame trm-anima-link"><img alt="cover" class="no-fancybox" src="/xujianhu/img/block.jpg"></a><div class="trm-card-descr"><div class="trm-label trm-category trm-mb-20"><a href="/xujianhu/categories/%E5%90%8E%E7%AB%AF/">后端</a></div><h5><a href="/xujianhu/%E5%90%8E%E7%AB%AF/limit%E5%92%8Coffset%E7%94%A8%E6%B3%95/" class="trm-anima-link">limit和offset用法</a></h5><div class="trm-divider trm-mb-20 trm-mt-20"></div><ul class="trm-card-data trm-label"><li>23/10/09</li><li>00:06</li></ul></div></div></div><div class="col-lg-6"><div class="trm-blog-card trm-scroll-animation"><a href="/xujianhu/node/%E5%9F%BA%E7%A1%80%E3%80%81%E6%80%8E%E6%A0%B7%E5%9C%A8webpack%E4%B8%AD%E4%BD%BF%E7%94%A8%20art-template%20%E6%A8%A1%E6%9D%BF%E5%BC%95%E6%93%8E%EF%BC%8C%20art-template%E8%AF%A6%E8%A7%A3/" class="trm-cover-frame trm-anima-link"><img alt="cover" class="no-fancybox" src="/xujianhu/img/block.jpg"></a><div class="trm-card-descr"><div class="trm-label trm-category trm-mb-20"><a href="/xujianhu/categories/node/">node</a></div><h5><a href="/xujianhu/node/%E5%9F%BA%E7%A1%80%E3%80%81%E6%80%8E%E6%A0%B7%E5%9C%A8webpack%E4%B8%AD%E4%BD%BF%E7%94%A8%20art-template%20%E6%A8%A1%E6%9D%BF%E5%BC%95%E6%93%8E%EF%BC%8C%20art-template%E8%AF%A6%E8%A7%A3/" class="trm-anima-link">基础、怎样在webpack中使用 art-template 模板引擎， art-template详解</a></h5><div class="trm-divider trm-mb-20 trm-mt-20"></div><ul class="trm-card-data trm-label"><li>23/10/09</li><li>00:03</li></ul></div></div></div></div><div class="trm-divider footer-divider"></div><footer class="trm-scroll-animation"><div class="trm-footer-item"><span>© 2023- 2023</span> <span class="footer-separator" data-separator=" · "></span> <span class="trm-accent-color">不情的歌</span></div><div class="trm-footer-item">博客已萌萌哒运行 <span id="since" class="trm-accent-color"></span> 天</div><div class="trm-footer-item">当你累的时候你是在走上坡路</div></footer><script>function show_date_time(){var e=new Date("10/07/2023 15:00:00"),t=(new Date).getTime()-e.getTime(),i=Math.floor(t/864e5);since.innerHTML=i}show_date_time()</script></div></div></div></div></div><div id="post-toc" class="trm-post-toc"><div class="trm-post-toc-header">目录导航</div><div class="trm-post-toc-content"><ol class="trm-toc"><li class="trm-toc-item trm-toc-level-1"><a rel="nofollow" class="trm-toc-link" href="#WSL-win10的linux编程接口"><span class="trm-toc-number">1.</span> <span class="trm-toc-text">WSL win10的linux编程接口</span></a></li><li class="trm-toc-item trm-toc-level-1"><a rel="nofollow" class="trm-toc-link" href="#linux目录结构"><span class="trm-toc-number">2.</span> <span class="trm-toc-text">linux目录结构</span></a><ol class="trm-toc-child"><li class="trm-toc-item trm-toc-level-2"><a rel="nofollow" class="trm-toc-link" href="#linux命令入门"><span class="trm-toc-number">2.1.</span> <span class="trm-toc-text">linux命令入门</span></a><ol class="trm-toc-child"><li class="trm-toc-item trm-toc-level-3"><a rel="nofollow" class="trm-toc-link" href="#ls命令"><span class="trm-toc-number">2.1.1.</span> <span class="trm-toc-text">ls命令</span></a></li><li class="trm-toc-item trm-toc-level-3"><a rel="nofollow" class="trm-toc-link" href="#cd命令切换工作目录"><span class="trm-toc-number">2.1.2.</span> <span class="trm-toc-text">cd命令切换工作目录</span></a></li><li class="trm-toc-item trm-toc-level-3"><a rel="nofollow" class="trm-toc-link" href="#pwd-查看当前工作目录"><span class="trm-toc-number">2.1.3.</span> <span class="trm-toc-text">pwd 查看当前工作目录</span></a></li><li class="trm-toc-item trm-toc-level-3"><a rel="nofollow" class="trm-toc-link" href="#相对路径-绝对路径-特殊路径表示符"><span class="trm-toc-number">2.1.4.</span> <span class="trm-toc-text">相对路径 绝对路径 特殊路径表示符</span></a></li><li class="trm-toc-item trm-toc-level-3"><a rel="nofollow" class="trm-toc-link" href="#mkdir命令-创建文件夹"><span class="trm-toc-number">2.1.5.</span> <span class="trm-toc-text">mkdir命令 创建文件夹</span></a></li><li class="trm-toc-item trm-toc-level-3"><a rel="nofollow" class="trm-toc-link" href="#rm命令-删除文件或目录"><span class="trm-toc-number">2.1.6.</span> <span class="trm-toc-text">rm命令 删除文件或目录</span></a></li><li class="trm-toc-item trm-toc-level-3"><a rel="nofollow" class="trm-toc-link" href="#touch创建文件-cat查看文件-more分页查看文件"><span class="trm-toc-number">2.1.7.</span> <span class="trm-toc-text">touch创建文件 cat查看文件 more分页查看文件</span></a></li><li class="trm-toc-item trm-toc-level-3"><a rel="nofollow" class="trm-toc-link" href="#cp复制文件、文件夹"><span class="trm-toc-number">2.1.8.</span> <span class="trm-toc-text">cp复制文件、文件夹</span></a></li><li class="trm-toc-item trm-toc-level-3"><a rel="nofollow" class="trm-toc-link" href="#mv-命令移动文件、文件夹"><span class="trm-toc-number">2.1.9.</span> <span class="trm-toc-text">mv 命令移动文件、文件夹</span></a></li><li class="trm-toc-item trm-toc-level-3"><a rel="nofollow" class="trm-toc-link" href="#which命令-查找命令程序所在"><span class="trm-toc-number">2.1.10.</span> <span class="trm-toc-text">which命令 查找命令程序所在</span></a></li><li class="trm-toc-item trm-toc-level-3"><a rel="nofollow" class="trm-toc-link" href="#find查找文件路径"><span class="trm-toc-number">2.1.11.</span> <span class="trm-toc-text">find查找文件路径</span></a></li><li class="trm-toc-item trm-toc-level-3"><a rel="nofollow" class="trm-toc-link" href="#文件的内容操作"><span class="trm-toc-number">2.1.12.</span> <span class="trm-toc-text">文件的内容操作</span></a></li></ol></li><li class="trm-toc-item trm-toc-level-2"><a rel="nofollow" class="trm-toc-link" href="#vi-vim编辑器"><span class="trm-toc-number">2.2.</span> <span class="trm-toc-text">vi vim编辑器</span></a></li><li class="trm-toc-item trm-toc-level-2"><a rel="nofollow" class="trm-toc-link" href="#linux-用户"><span class="trm-toc-number">2.3.</span> <span class="trm-toc-text">linux 用户</span></a><ol class="trm-toc-child"><li class="trm-toc-item trm-toc-level-3"><a rel="nofollow" class="trm-toc-link" href="#linux-root用户"><span class="trm-toc-number">2.3.1.</span> <span class="trm-toc-text">linux root用户</span></a></li><li class="trm-toc-item trm-toc-level-3"><a rel="nofollow" class="trm-toc-link" href="#linux-用户与用户组"><span class="trm-toc-number">2.3.2.</span> <span class="trm-toc-text">linux 用户与用户组</span></a></li><li class="trm-toc-item trm-toc-level-3"><a rel="nofollow" class="trm-toc-link" href="#查看权限信息"><span class="trm-toc-number">2.3.3.</span> <span class="trm-toc-text">查看权限信息</span></a></li><li class="trm-toc-item trm-toc-level-3"><a rel="nofollow" class="trm-toc-link" href="#chmod-命令-修改权限信息"><span class="trm-toc-number">2.3.4.</span> <span class="trm-toc-text">chmod 命令 修改权限信息</span></a></li><li class="trm-toc-item trm-toc-level-3"><a rel="nofollow" class="trm-toc-link" href="#chown命令-修改文件、文件夹所属用户用户组"><span class="trm-toc-number">2.3.5.</span> <span class="trm-toc-text">chown命令 修改文件、文件夹所属用户用户组</span></a></li></ol></li><li class="trm-toc-item trm-toc-level-2"><a rel="nofollow" class="trm-toc-link" href="#常用快捷键"><span class="trm-toc-number">2.4.</span> <span class="trm-toc-text">常用快捷键</span></a><ol class="trm-toc-child"><li class="trm-toc-item trm-toc-level-3"><a rel="nofollow" class="trm-toc-link" href="#ctrl-c-强制停止"><span class="trm-toc-number">2.4.1.</span> <span class="trm-toc-text">ctrl+c 强制停止</span></a></li><li class="trm-toc-item trm-toc-level-3"><a rel="nofollow" class="trm-toc-link" href="#histoy-查看历史命令"><span class="trm-toc-number">2.4.2.</span> <span class="trm-toc-text">histoy 查看历史命令</span></a></li><li class="trm-toc-item trm-toc-level-3"><a rel="nofollow" class="trm-toc-link" href="#！匹配命令"><span class="trm-toc-number">2.4.3.</span> <span class="trm-toc-text">！匹配命令</span></a></li><li class="trm-toc-item trm-toc-level-3"><a rel="nofollow" class="trm-toc-link" href="#ctrl-r-搜索历史命令"><span class="trm-toc-number">2.4.4.</span> <span class="trm-toc-text">ctrl+r 搜索历史命令</span></a></li><li class="trm-toc-item trm-toc-level-3"><a rel="nofollow" class="trm-toc-link" href="#命令光标移动快捷键"><span class="trm-toc-number">2.4.5.</span> <span class="trm-toc-text">命令光标移动快捷键</span></a></li><li class="trm-toc-item trm-toc-level-3"><a rel="nofollow" class="trm-toc-link" href="#清屏"><span class="trm-toc-number">2.4.6.</span> <span class="trm-toc-text">清屏</span></a></li></ol></li><li class="trm-toc-item trm-toc-level-2"><a rel="nofollow" class="trm-toc-link" href="#软件"><span class="trm-toc-number">2.5.</span> <span class="trm-toc-text">软件</span></a><ol class="trm-toc-child"><li class="trm-toc-item trm-toc-level-3"><a rel="nofollow" class="trm-toc-link" href="#yum-apt包管理"><span class="trm-toc-number">2.5.1.</span> <span class="trm-toc-text">yum apt包管理</span></a></li><li class="trm-toc-item trm-toc-level-3"><a rel="nofollow" class="trm-toc-link" href="#systemctl命令-系统服务管理"><span class="trm-toc-number">2.5.2.</span> <span class="trm-toc-text">systemctl命令 系统服务管理</span></a></li><li class="trm-toc-item trm-toc-level-3"><a rel="nofollow" class="trm-toc-link" href="#软连接-：快捷方式"><span class="trm-toc-number">2.5.3.</span> <span class="trm-toc-text">软连接 ：快捷方式</span></a></li><li class="trm-toc-item trm-toc-level-3"><a rel="nofollow" class="trm-toc-link" href="#日期和时区"><span class="trm-toc-number">2.5.4.</span> <span class="trm-toc-text">日期和时区</span></a></li><li class="trm-toc-item trm-toc-level-3"><a rel="nofollow" class="trm-toc-link" href="#ip地址和主机名"><span class="trm-toc-number">2.5.5.</span> <span class="trm-toc-text">ip地址和主机名</span></a></li></ol></li></ol></li></ol></div></div><div class="trm-fixed-container"><div class="trm-fixed-btn post-toc-btn" data-title="目录"><i class="iconfont fas fa-th-list"></i></div><div class="trm-fixed-btn" data-title="阅读模式" onclick="asyncFun.switchReadMode()"><i class="iconfont fas fa-book-reader"></i></div><div class="trm-fixed-btn hidden-md" data-title="单栏和双栏切换" onclick="asyncFun.switchSingleColumn()"><i class="iconfont fas fa-arrows-alt-h"></i></div><div id="trm-back-top" class="trm-fixed-btn" data-title="回到顶部"><i class="iconfont fas fa-arrow-up"></i></div></div></div></div></div><script src="https://unpkg.com/@fancyapps/ui@4.0/dist/fancybox.umd.js"></script><script src="/xujianhu/js/plugins/typing.js?v=2.1.2"></script><script id="async-script" src="/xujianhu/js/main.js?v=2.1.2"></script><script src="/xujianhu/live2dw/lib/L2Dwidget.min.js?094cbace49a39548bed64abff5988b05"></script><script>L2Dwidget.init({"log":false,"pluginJsPath":"lib/","pluginModelPath":"assets/","pluginRootPath":"live2dw/","tagMode":false});</script></body></html>